package com.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.Unit;
import com.dao.UnitMapper;
import com.service.UnitService;
@Service
public class UnitServiceImpl implements UnitService {
	@Autowired
	private UnitMapper dao;

	public int deleteByPrimaryKey(Integer id) {
		return dao.deleteByPrimaryKey(id);
	}

	public int insert(Unit record) {
		return dao.insert(record);
	}

	public int insertSelective(Unit record) {
		return dao.insertSelective(record);
	}

	public Unit selectByPrimaryKey(Integer id) {
		return dao.selectByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Unit record) {
		return dao.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Unit record) {
		return dao.updateByPrimaryKey(record);
	}

	public List<Unit> select(Map map) {
		return dao.select(map);
	}

	public List<Unit> selectByComplexId(Integer id) {
		return dao.selectByComplexId(id);
	}

	public int inserttotal(Map<String, Object> units) {
		return dao.inserttotal(units);
	}

}
